# Create your views here.
from django import http, template
from django.views.decorators.cache import never_cache
from django.contrib.admin import site 
from django.utils.translation import ugettext_lazy, ugettext as _
from tjango.modules.models import system
from django.shortcuts import render_to_response

def index( request, extra_context=None):
        """
        Displays the main admin index page, which lists all of the installed
        apps that have been registered in this site.
        """
       
        
        context = {
            'title': _('Site administration'),
            'system': system,
           # 'root_path': site.root_path,
        }
        context.update(extra_context or {})
        return render_to_response('admin/index.html', context, 
            context_instance=template.RequestContext(request)
        )
    	index = never_cache(index)

def querys(request):
	return render_to_response('admin/query.html',  context_instance=template.RequestContext(request))